package com.chorye.function.schedule.exception;

/**
 * 自定义定时任务异常
 *
 * @author Chorye
 */
public class QuartzException extends RuntimeException {
    /**
     * 序列化id
     */
    private static final long serialVersionUID = 1L;
    /**
     * 错误码
     */
    private Integer code;

    public QuartzException(Integer code) {
        this.code = code;
    }

    public QuartzException(String message) {
        super(message);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
